<style type="text/css">
	.border-container::after {
		content: "Alterar senha";
	}
</style>
<div class="container">
	{{ Form::open(array('url' => 'loggedUser/update-password', 'class' => 'form-horizontal', 'role' => 'form')) }}
		<div class="border-container">
			@if (!$errors->isEmpty())
			<div class="alert alert-danger">
				<strong>Ocorreram os seguintes erros:</strong>
				{{ HTML::ul($errors->all()) }}
			</div>
			@endif
			
			@if(Session::has('successMessage'))
	            <div class="alert alert-success">{{ Session::get('successMessage') }}</div>
	        @endif
	        
	        @if(Session::has('errorMessage'))
	            <div class="alert alert-danger">{{ Session::get('errorMessage') }}</div>
	        @endif
			
			<div class="form-group">
				<label for="password" class="col-sm-2 control-label">Senha Atual</label>
				<div class="col-sm-4">
					{{ Form::password('currentPassword', array('class'=>'form-control')) }}
				</div>
			</div>
		            
			<div class="form-group">
				<label for="password" class="col-sm-2 control-label">Nova Senha</label>
				<div class="col-sm-4">
					{{ Form::password('password', array('class'=>'form-control')) }}
				</div>
			</div>
			<div class="form-group">
				<label for="password_confirmation" class="col-sm-2 control-label">Confirme a Senha</label>
				<div class="col-sm-4">
					{{ Form::password('password_confirmation', array('class'=>'form-control')) }}
				</div>
			</div>
				
      	</div>
      
      	{{ Form::submit('Alterar Senha', array('class'=>'btn btn-primary'))}}
      {{ Form::close() }}
    </div>